<h1>Listing mentorships</h1>

<table>
  <tr>
    <th>Mentee</th>
    <th>Mentor</th>
    <th>Location</th>
  </tr>

<% for mentorship in @mentorships %>
  <tr>
    <td><%=h mentorship.mentee_id %></td>
    <td><%=h mentorship.mentor_id %></td>
    <td><%=h mentorship.location %></td>
    <td><%= link_to 'Show', mentorship %></td>
    <td><%= link_to 'Edit', edit_mentorship_path(mentorship) %></td>
    <td><%= link_to 'Destroy', mentorship, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New mentorship', new_mentorship_path %>
